// @import "~taro-ui/dist/style/index.scss";
// @use './assets/style/font_20250606/iconfont.css';
@use './variables.scss';
// *,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}
.blod-title {
    font-family: 'Alibaba PuHuiTi 3.0';
}
.bd-rd {
    border-radius: var(--nutui-border-radius);
}

.link {
    color: var(--nutui-color-primary);
    cursor: pointer;
}
.linkX {
    color: var(--nutui-color-blue);
    cursor: pointer;
}
.blue {
    color: var(--nutui-color-blue);
    // color: #336EC7
}

.btnLG {
    background: linear-gradient(135deg, #fe9d48 0%, #ff761f 100%) !important;
}
// 主色按钮 纯色
.btnOrg {
    background: var(--nutui-color-primary-stop-2) !important;
}
// 蓝色按钮 纯色
.btnBlue {
    background: #0076ff !important;
}

// 解决iPhone x 以后的机型 底部安全区域的问题 https://jelly.jd.com/article/6006b1055b6c6a01506c87fd
.safe-area-bottom {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.safe-area-top {
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
}

.layout-screen {
    height: calc(100vh - constant(safe-area-inset-bottom));
    height: calc(100vh - env(safe-area-inset-bottom));
}

.layout-tabbar-screen {
    height: calc(100vh - 50px - constant(safe-area-inset-bottom));
    height: calc(100vh - 50px - env(safe-area-inset-bottom));
}

.layout-tabbar-safe-bottom {
    padding-bottom: calc(50px + constant(safe-area-inset-bottom));
    padding-bottom: calc(50px + env(safe-area-inset-bottom));
}

.layout-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;

    .layout-content {
        flex-grow: 1;
        overflow: auto;
    }
}
.footer {
    visibility: visible;
    .hide {
        visibility: hidden;
        opacity: 0;
    }
}
.nut-form {
    display: block;
    height: auto;
    .nut-form-item-label-left {
        white-space: initial !important;
    }
    .nut-form-item-label-required {
        top: 2px;
    }
    .nut-form-item-left.disabled,
    .nut-input-disabled,
    .nut-input-disabled .nut-input-native {
        color: var(--nutui-input-disabled-color) !important;
    }
    .nut-form-item-left.disabled .nut-form-item-label-required {
        opacity: 0.5;
    }
    .nut-input-native,
    .nut-textarea-textarea {
        line-height: var(--nutui-cell-line-height, 40px) !important;
    }
}

::placeholder,
.textarea-placeholder,
.input-placeholder {
    color: var(--nutui-gray-4);
    padding-top: 2px;
    font-weight: normal;
    font-size: var(--nutui-form-item-label-font-size, var(--nutui-font-size-3, 28px));
}
.nut-searchbar {
    .nut-searchbar-icon {
        color: var(--nutui-gray-4);
    }
    .nut-searchbar-input-box {
        margin-left: 10px;
    }
    .nut-searchbar-input,
    .input-placeholder {
        display: inline-block !important;
        font-size: 28px;
    }
}
/* 去掉form表单左边边距 */
// .form-layout-left .nut-form-item-label {
//     padding-left: 0 !important;
//     padding-right: 20px !important;
//     width: 35% !important;
//     flex: 0 0 auto !important;
//     margin-right: 0 !important;
// }

/* 表单内容居右 */
// .nut-form-item-body-slots {
//     display: flex;
//     justify-content: flex-end;
// }
.required-text::before {
    content: '*';
    color: var(--nutui-color-danger);
    margin-right: 8px;
}
// /* 必须校验样式调整 */
// .nut-form .nut-form-item-label-required {
//     display: inline-block !important;
//     position: inherit !important;
//     margin-right: 4px;
// }

.nut-tabs-titles {
    padding: 0 !important;
}
.basic-content {
    iframe {
        float: left;
    }
}
.form-layout-top {
    .nut-form-item {
        // padding: 60px 0 15px 0 !important;
        padding-top: 60px !important;
        padding-bottom: 15px !important;
        .nut-cell-divider {
            left: 0 !important;
            right: 0 !important;
        }
        // .nut-input,
        // .nut-form-item-body-tips {
        //     padding-left: 6px !important;
        // }
        .nut-form-item-body-slots {
            min-height: 54px;
            input {
                min-height: 54px;
            }
        }
    }
    .nut-form-item-label {
        padding-bottom: 20px !important;
    }
}

// 修复ui组件样式
.nut-popover-dark {
    .nut-popover-arrow-top {
        border-top-color: var(--nutui-popover-text-color, #1a1a1a);
    }
    .nut-popover-arrow-left {
        border-bottom-color: transparent !important;
        top: 16px !important;
        border-left-color: var(--nutui-popover-text-color, #1a1a1a);
    }
    .nut-popover-arrow-right {
        border-bottom-color: transparent !important;
        top: 16px !important;
        border-right-color: var(--nutui-popover-text-color, #1a1a1a);
    }
}

.nut-cell-extra {
    .nut-icon {
        max-width: 32px;
        max-height: 32px;
        color: #999;
    }
}
.nut-skeleton {
    box-sizing: border-box;
}

// h5网页特殊处理
#container {
    height: 100%;
    > .taro-tabbar__panel {
        height: 100%;
    }
}
.inner-card {
    .nut-cell {
        box-shadow: none;
    }
}

.border-color {
    color: var(--nutui-gray-6, #595959);
}

.tip-text {
    color: var(--nutui-gray-6, #595959);
    margin: 10px 0;
}

.nut-picker-reset-btn {
    color: var(--nutui-picker-title-ok-color, var(--nutui-color-primary, #fa2c19));
    font-size: var(--nutui-picker-title-ok-font-size, var(--nutui-font-size-3, 28rpx));
    position: absolute;
    right: 110px;
}
// 顶部信息提示增加透明度
.nut-notify-popup-top {
    opacity: 0.9 !important;
}

// 超长省略号显示
.ellipsis {
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 超出内容隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
}

// 骨架屏样式
.skeleton-bg {
    background-color: #fff;
    border-radius: var(--nutui-border-radius);
    padding: 0 24px 24px 24px;
}

.nut-popup-title {
    justify-content: flex-start !important;
}
.view-c {
    width: 100%;
    display: flex;
    align-items: center;
}
.view-r {
    margin-top: 20px;
    margin-bottom: 40px;
    margin-right: 20px;
    justify-content: flex-end; /* 水平靠右 */
    display: flex;
}
.page-view {
    height: 600px;
    background-color: #fe9d48;
}